<template>
	<view class="study">
		<view class="study-all">
			<!-- 图片层 -->
			<view class="top">
				<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000" class="img">
					<swiper-item>
						<image src="../../static/roomimg/1.jpg" mode="aspectFit"></image>
					</swiper-item>
					<swiper-item>
						<image src="../../static/roomimg/2.jpg" mode="aspectFit"></image>
					</swiper-item>
					<swiper-item>
						<image src="../../static/roomimg/3.jpg" mode="aspectFit"></image>
					</swiper-item>
				</swiper>
			</view>
			<!-- 名称评分层 -->
			<view class="mid">
				<view class="text">
					<h3 class="h3">方隐自习室</h3>
					<span class="span">24小时营业</span>
				</view>
				<view class="fen">
					<view class="xing">
						<image src="../../static/xx.png" mode="" class="xing-img"></image>
						<image src="../../static/xx.png" mode="" class="xing-img"></image>
						<image src="../../static/xx.png" mode="" class="xing-img"></image>
						<image src="../../static/xx.png" mode="" class="xing-img"></image>
					</view>
					<view class="text">
						<image src="../../static/huo.png" mode="" class="huo-ioc"></image>
						<span class="span-text">上座率 {{4}}/{{50}} </span>
					</view>
				</view>
			</view>
			<!-- 地址层 -->
			<view class="bottom">
				<view class="left">
					<image src="../../static/dw.png" mode="" class="dw-ioc"></image>
					<span>川大路二段2号</span>
				</view>
				<view class="iphone">
					<image src="../../static/dh.png" mode="" class="iphone-ioc"></image>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"study-top",
		data() {
			return {
				
			};
		}
	}
</script>

<style scoped lang="scss">

.study-all{
	padding: 16rpx;
	text-align: center;
	background-color: #fff;
}

.top{
	padding: 30rpx 60rpx;
	border-bottom: 2rpx solid  #d5d5d5;

	.img{
		width: 100%;
		height: 350rpx;
		margin-top: -70rpx;
		border-radius: 10rpx;
	}
}

.mid{
	padding: 16rpx 60rpx;
	border-bottom: 2rpx solid  #d5d5d5;
	.text{
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		.span{
			color: #595959;
			font-size: 14px;
		}
		.h3{
			font-size: 40rpx;
			font-weight: 600;
		}
	}
	
	.fen{
		margin-top: 10rpx;
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
		.text{
			display: flex;
			align-items: flex-end;
			.span-text{
				display: inline-block;
				background-color: #f2f9ec;
				color: #6bc12d;
				padding: 5rpx;
				font-size: 14px;
			}
			.huo-ioc{
				width: 40rpx;
				height: 40rpx;
			}
		}
		.xing{
			.xing-img{
				width: 40rpx;
				height: 40rpx;
			}
		}
	}
}

.bottom{
	margin-top: 10rpx;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0rpx 60rpx 0px;
	.left{
		display: flex;
		font-size: 14px;
		.dw-ioc{
			width: 40rpx;
			height: 40rpx;
			margin-right: 15rpx;
		}
	}
	.iphone{
		.iphone-ioc{
			width: 40rpx;
			height: 40rpx;
		}
	}
}
</style>
